<?php
namespace Tbf\Bundle\QueueBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
 * @ORM\Entity()
 * @ORM\Table(name="tbf_queue")
 */
class QueueData
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;
    /**
     * @ORM\Column(type="object")
     */
    protected $data;
    /**
     * @ORM\Column()
     */
    protected $channel;
    public function __construct($channel,$data)
    {
        $this->channel = $channel;
        $this->data = $data;
    }
    public function getData()
    {
        return $this->data;
    }
}
